public class TestDemo {
    public static void printArray(Object... array) {
        for (Object x: array) {
            System.out.println(x+" ");
        }
    }

    public static void main(String[] args) {
        printArray(1,2,"hello","world",new Integer(4));
    }
}
